//
//  RSSingleLineEditCell.h
//  iAccountBook
//
//  Created by 侯伟 on 2020/3/3.
//  Copyright © 2020 侯伟. All rights reserved.
//
// 单行编辑的item 输入框

#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN

@interface RSSingleLineEditCell : MyLinearLayout

/// 标题
@property(nonatomic,copy,nullable)NSString* title;

/// 默认 COLOR_GRAY_DARK
@property(nonatomic,strong)UIColor* titleColor;

/// 默认 FONT(14)
@property(nonatomic,strong)UIFont* titleFont;

/// 占位文本
@property(nonatomic,copy)NSString* placehodler;

/// 显示文本 居右显示
@property(nonatomic,copy,nullable)NSString* text;

/// 默认 COLOR_BLACK_DARK
@property(nonatomic,strong)UIColor* textColor;

/// 默认 FONT(14)
@property(nonatomic,strong)UIFont* textFont;

/// 键盘类型
@property(nonatomic,assign)UIKeyboardType keyboardType;

/// 下划线 默认显示
@property(nonatomic,assign)BOOL showSeparator;

/// 下划线 默认UIEdgeInsetsMake(0, 20, 0, 0)
@property(nonatomic,assign)UIEdgeInsets separatorInset;

/// 是否可编辑 默认yes
@property(nonatomic,assign)BOOL editable;

/// 文本内容变化时调用
@property(nonatomic,copy)StringBlock textChangedBlock;

/// -
/// @param title 标题
/// @param isNecessary 是否是必须项
+ (instancetype)cellWithTitle:(NSString *)title;

@end

NS_ASSUME_NONNULL_END
